package 结构型模式.装饰者模式.实例二;

/**
 * @author chenhs
 * @date 2020/10/18
 */
public class Erasure extends GunFactory {
	public Erasure(Igun gun) {
		super(gun);
	}
	public  void shoot(){
		this.addErasure();
		gun.shoot();
		System.out.println("现在是带消音器的枪了");
	}
	public  void  addErasure(){
		System.out.println("我给枪加了消音器");
	}
}
